package kr.co.dayve.site.management.dao;

import kr.co.dayve.site.domain.*;

import java.util.List;


public interface CommunityBoardDao {
	public abstract List getBoardListBySearchword(CommunityBoard board);
    public abstract List getBoardListByNo(CommunityBoard board);
    public abstract String getTotalCountBySearchword(CommunityBoard board);
    public abstract String getTotalCountByNo(CommunityBoard board);
    public abstract String writeBoard(CommunityBoard board);
    public abstract String updateBoard(CommunityBoard board);
    public abstract String deleteBoard(CommunityBoard board);
    public abstract CommunityBoard getBoardByNo(String community_board_no);

    public abstract String updateReplyCount(CommunityBoard board);
    public abstract String updateHitCount(CommunityBoard board);
    public abstract String updateVoteCount(CommunityBoard board);
    public abstract String updateNegativeCount(CommunityBoard board);
    public abstract String updateReportCount(CommunityBoard board);

    public abstract String checkDuplicateVote(Vote vote);
    public abstract String insertVoterToList(Vote vote);

    public abstract String communityBoardReport(Report report);
    public abstract String checkDuplicateReport(Report report);

    public abstract String updateBoardNotImage(CommunityBoard board);
}
